home *** CD-ROM | disk | FTP | other *** search
/ HAM Radio 1997 / HAM Radio 1997.iso / vcls / wsanet8a / wsanet / src / buildrc.bat < prev    next >
DOS Batch File  |  1996-04-08  |  1KB  |  43 lines

  1. @echo off
  2. rem Dos 6.0 batch file
  3. c:\dos\choice Debug or Release? (D,R) /N /C:RD /T:D,10
  4. if errorlevel 2 goto DEBUG
  5. :RELEASE
  6. echo Building resources for RELEASE.VBX
  7. set filebase=wsanet
  8. set target=release
  9. goto DOIT
  10. :DEBUG
  11. echo Building resources for WSANET.VBX (Debugging)
  12. set filebase=wsanet
  13. set target=wsanet
  14. :DOIT
  15. c:
  16. cd \wsanet\src
  17. copy c:\qcwin\bin\rcpp.* > NUL:
  18. c:\qcwin\bin\rc -dUSE_31 -iC:\QCWIN\INCLUDE;C:\VB\CDK; -x -foC:\WSANET\SRC\%filebase%.RES -r C:\WSANET\SRC\WSANET.RC 
  19. if not exist c:\WSANET\SRC\WSANET.RES goto ERROR_NORES
  20. if not exist c:\WSANET\SRC\WSANET.DLL goto ERROR_NODLL
  21. c:\qcwin\bin\rc /t c:\wsanet\src\%filebase%.res c:\wsanet\src\%filebase%.dll 
  22. cd \wsanet\src
  23. copy %filebase%.dll %target%.vbx > NUL:
  24. copy %target%.vbx c:\windows\system > NUL:
  25. del %filebase%.dll
  26. del rcpp.* > NUL:
  27. del *.res > NUL:
  28. del *.mdt > NUL:
  29. cd \wsanet\src
  30. goto END
  31.  
  32. :ERROR_NORES
  33. echo .RES file was not built! - Aborting
  34. goto END
  35.  
  36. :ERROR_NODLL
  37. echo .DLL file was not available! - Aborting
  38.  
  39. :END
  40. c:\dos\choice Delay... hit Y to continue? /N /C:YN /T:Y,5
  41. echo End.
  42.  
  43.